import axios from '../axios'

/*
 * 文章管理模块
 */

// 保存
export const save = (data) => {
    return axios({
        url: '/api/subject/add',
        method: 'post',
        data
    })
}
export const saveContent = (data) => {
    return axios({
        url: '/api/sub/content/add',
        method: 'post',
        data
    })
}
export const detail = (data) =>{
    return axios({
        url:'/api/subject/info/detail/'+data.unique,
        method:'get'
    })
}
// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/api/subject/batch/del',
        method: 'post',
        data
    })
}
// 分页查询
export const findPage = (data) => {
    return axios({
        url: '/api/subject/mg/page',
        method: 'POST',
        data
    })
}
// 分页查询
export const findJobPage = (data) => {
  return axios({
    url: '/api/bmg/execute',
    method: 'POST',
    data
  })
}
